package com.kx.springboot.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class IndexController {
    @Value("${student.name}")
    private String stuName;
    @Value("${websit}")
    private String websit;

    @RequestMapping("/say")
    @ResponseBody
    public String say() {
        return "Hello:" + stuName + websit;
    }
}
